<?
include('header.php');
if(!$is_online){
	redirect('index.php');
	exit;
}
	$action = array(
				'google' => 1,
				'facebook' => 1,
				'youtube' => 1,
				'linkedin' => 1,
				'surf' => 1,
				'stumbleupon' => 1,
				'ytlikes' => 1,
				'tweets' => 1
			);

$id = $db->EscapeString($_GET['id']);

?>
<div class="block medium right">
	<div class="top"><h1>Edit Page</h1></div>
		<div class="content">
			<?
			if (isset($_GET['x']) && isset($action[$_GET['x']])) {
				$page_name = $_GET['x'];
			}else{
				$page_name = 'google';
			}
			include('pages/editurl/'.$page_name.'.php');
			?>
		</div>
</div>
<?include('footer.php');?>